home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2005 May / CyberMycha 05-2005 (Poland).bin / Immortal / cotndemo.exe / AdobeInstall.exe / Reader / plug_ins / PPKLite.api / EXVW / 20015 < prev    next >
Encoding:
Text File  |  2002-08-12  |  3.1 KB  |  62 lines

  1. gValidNoteWidth = max_char_width() * 22;
  2. gValidNoteHeight = gStaticTextHeight * 7;
  3.  
  4. gMaxButtonWidth = 25 + max(
  5.     zstring_width(zstring: '$$$/Dialogs/SigProperties/ShowCertificateButton'),
  6.     zstring_width(zstring: '$$$/Dialogs/SigProperties/ImportCertificateButton'));
  7.  
  8. gPropertyLabelWidth = max(
  9.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/Name'),
  10.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/Date'),
  11.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/ContactInfo'),
  12.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/Reason'),
  13.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/Location'));
  14.  
  15. dialog(name: '$$$/Dialogs/SigProperties', target_id: 'name' )
  16. {
  17.     group()
  18.     {
  19.         cluster(name: '$$$/Dialogs/SigProperties/ValidInfo/ClusterName', align_children: align_distribute, alignment: align_fill )
  20.         {
  21.             picture(item_id: 'icon', width: 32, height: 32);
  22.             static_text(item_id: 'ValT', width: gValidNoteWidth, height: gValidNoteHeight );
  23.             button(item_id: 'ValB', name: '$$$/Dialogs/SigProperties/SigInfo/ValidateButton');
  24.         }
  25.         cluster(name: '$$$/Dialogs/SigProperties/Revision/ClusterName', align_children: align_row, alignment: align_fill )
  26.         {
  27.             static_text(item_id: 'RevT', name: '$$$/Dialogs/SigProperties/Revision/RevisionText', alignment: align_fill, height: gStaticTextHeight * 2 );
  28.             button(item_id: 'RevB', name: '$$$/Dialogs/SigProperties/Revision/RevisionButton');
  29.         }
  30.         cluster(name: '$$$/Dialogs/SigProperties/SigInfo/ClusterName', alignment: align_fill, align_children: align_left)
  31.         {
  32.             view(align_children: align_row, alignment: align_fill)
  33.             {
  34.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Name', width: gPropertyLabelWidth, alignment: align_right);
  35.                 edit_text(item_id: 'name', readonly: true, alignment: align_fill);
  36.                 button(item_id: 'cert', name: '$$$/Dialogs/SigProperties/ShowCertificateButton', width: gMaxButtonWidth);
  37.             }
  38.             view(align_children: align_row, alignment: align_fill)
  39.             {
  40.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Date', width: gPropertyLabelWidth, alignment: align_right);
  41.                 edit_text(item_id: 'date', readonly: true, alignment: align_fill);
  42.                 button(item_id: 'impo', name: '$$$/Dialogs/SigProperties/ImportCertificateButton', width: gMaxButtonWidth);
  43.             }
  44.             view(align_children: align_row, alignment: align_fill)
  45.             {
  46.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Reason', width: gPropertyLabelWidth, alignment: align_right);
  47.                 edit_text(item_id: 'reas', readonly: true, alignment: align_fill);
  48.             }
  49.             view(align_children: align_row, alignment: align_fill)
  50.             {
  51.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Location', width: gPropertyLabelWidth, alignment: align_right);
  52.                 edit_text(item_id: 'loca', readonly: true, alignment: align_fill);
  53.             }
  54.             view(align_children: align_row, alignment: align_fill)
  55.             {
  56.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/ContactInfo', width: gPropertyLabelWidth, alignment: align_right);
  57.                 edit_text(item_id: 'cont', readonly: true, alignment: align_fill);
  58.             }
  59.         }
  60.         ok(ok_name: '$$$/Dialogs/SigProperties/Close');
  61.     }
  62. }